﻿@{
    ViewBag.title = "数据库初始化";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
    <title>@ViewBag.Title</title>
    <link href="~/css/main.css" rel="stylesheet" />
    <link href="~/css/backstage/font/iconfont.css" rel="stylesheet" />
    <link href="~/css/ElementUI/element-ui.css" rel="stylesheet" />
    <link href="~/css/update.css" asp-append-version="true" rel="stylesheet" />
    <style type="text/css">
        [v-cloak] {
            display: none;
        }

        .errmsg {
            color: #f30;
            padding: 5px 10px 0;
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div id="divUpdate" style="margin:0 auto; width:300px;height:400px;margin-top:100px;">
        <input type="button" class="blue_btn radius4 w200" v-on:click="updatedb" value="初始化数据库" />
        <p style="margin-top:50px;">
            <a class="blue_btn radius4 w200" href="/account/logoff">注销</a>
        </p>
    </div>
    <script src="~/lib/jquery-1.12.4.min.js"></script>
    <script src="~/lib/vue.min.js"></script>
    <script src="~/lib/elementui/element-ui.js"></script>
    <script src="~/js/common/elementextend.js" asp-append-version="true"></script>
    <script type="text/javascript">
        var VmUpdate = new Vue({
            el: "#divUpdate",
            data: {},
            methods: {
                updatedb: function () {
                    $.post("/Update/UpdateDb", {}, function (data) {
                        if (data.suc) {
                            VmYz.message(data.msg);
                        }
                    });
                }
            }
        })
    </script>
</body>
</html>
